<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>BodyHandler | @vertx/web</title>
	<meta name="description" content="">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="../index.html" class="title">@vertx/web</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-only-exported" />
							<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../globals.html">Globals</a>
				</li>
				<li>
					<a href="bodyhandler.html">BodyHandler</a>
				</li>
			</ul>
			<h1>Class BodyHandler</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel tsd-comment">
				<div class="tsd-comment tsd-typography">
					<div class="lead">
						<p>A handler which gathers the entire request body and sets it on the <a href="routingcontext.html">RoutingContext</a>.
							<p>
							It also handles HTTP file uploads and can be used to limit body sizes.</p>
					</div>
					<dl class="tsd-comment-tags">
						<dt>author</dt>
						<dd><p><a href="http://tfox.org">Tim Fox</a></p>
						</dd>
					</dl>
				</div>
			</section>
			<section class="tsd-panel tsd-hierarchy">
				<h3>Hierarchy</h3>
				<ul class="tsd-hierarchy">
					<li>
						<span class="target">BodyHandler</span>
					</li>
				</ul>
			</section>
			<section class="tsd-panel">
				<h3>Implements</h3>
				<ul class="tsd-hierarchy">
					<li><span class="tsd-signature-type">any</span></li>
				</ul>
			</section>
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Properties</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="bodyhandler.html#default_body_limit" class="tsd-kind-icon">DEFAULT_<wbr>BODY_<wbr>LIMIT</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="bodyhandler.html#default_delete_uploaded_files_on_end" class="tsd-kind-icon">DEFAULT_<wbr>DELETE_<wbr>UPLOADED_<wbr>FILES_<wbr>ON_<wbr>END</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="bodyhandler.html#default_merge_form_attributes" class="tsd-kind-icon">DEFAULT_<wbr>MERGE_<wbr>FORM_<wbr>ATTRIBUTES</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="bodyhandler.html#default_preallocate_body_buffer" class="tsd-kind-icon">DEFAULT_<wbr>PREALLOCATE_<wbr>BODY_<wbr>BUFFER</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="bodyhandler.html#default_uploads_directory" class="tsd-kind-icon">DEFAULT_<wbr>UPLOADS_<wbr>DIRECTORY</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Methods</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="bodyhandler.html#handle" class="tsd-kind-icon">handle</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="bodyhandler.html#setbodylimit" class="tsd-kind-icon">set<wbr>Body<wbr>Limit</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="bodyhandler.html#setdeleteuploadedfilesonend" class="tsd-kind-icon">set<wbr>Delete<wbr>Uploaded<wbr>Files<wbr>OnEnd</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="bodyhandler.html#sethandlefileuploads" class="tsd-kind-icon">set<wbr>Handle<wbr>File<wbr>Uploads</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="bodyhandler.html#setmergeformattributes" class="tsd-kind-icon">set<wbr>Merge<wbr>Form<wbr>Attributes</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="bodyhandler.html#setpreallocatebodybuffer" class="tsd-kind-icon">set<wbr>Preallocate<wbr>Body<wbr>Buffer</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="bodyhandler.html#setuploadsdirectory" class="tsd-kind-icon">set<wbr>Uploads<wbr>Directory</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="bodyhandler.html#create" class="tsd-kind-icon">create</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Properties</h2>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="default_body_limit" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> DEFAULT_<wbr>BODY_<wbr>LIMIT</h3>
					<div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>BODY_<wbr>LIMIT<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in index.d.ts:149</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>Default max size for a request body. -1 means unlimited</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="default_delete_uploaded_files_on_end" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> DEFAULT_<wbr>DELETE_<wbr>UPLOADED_<wbr>FILES_<wbr>ON_<wbr>END</h3>
					<div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>DELETE_<wbr>UPLOADED_<wbr>FILES_<wbr>ON_<wbr>END<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in index.d.ts:167</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>Default value of whether uploaded files should be removed after handling the request</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="default_merge_form_attributes" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> DEFAULT_<wbr>MERGE_<wbr>FORM_<wbr>ATTRIBUTES</h3>
					<div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>MERGE_<wbr>FORM_<wbr>ATTRIBUTES<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in index.d.ts:161</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>Default value of whether form attributes should be merged into request params</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="default_preallocate_body_buffer" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> DEFAULT_<wbr>PREALLOCATE_<wbr>BODY_<wbr>BUFFER</h3>
					<div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>PREALLOCATE_<wbr>BODY_<wbr>BUFFER<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in index.d.ts:173</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>Default value of whether to pre-allocate the body buffer size according to the content-length HTTP request header</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="default_uploads_directory" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> DEFAULT_<wbr>UPLOADS_<wbr>DIRECTORY</h3>
					<div class="tsd-signature tsd-kind-icon">DEFAULT_<wbr>UPLOADS_<wbr>DIRECTORY<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in index.d.ts:155</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>Default uploads directory on server for file uploads</p>
						</div>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Methods</h2>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="handle" class="tsd-anchor"></a>
					<h3>handle</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">handle<span class="tsd-signature-symbol">(</span>arg0<span class="tsd-signature-symbol">: </span><a href="routingcontext.html" class="tsd-signature-type">RoutingContext</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in index.d.ts:175</li>
								</ul>
							</aside>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>arg0: <a href="routingcontext.html" class="tsd-signature-type">RoutingContext</a></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="setbodylimit" class="tsd-anchor"></a>
					<h3>set<wbr>Body<wbr>Limit</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">set<wbr>Body<wbr>Limit<span class="tsd-signature-symbol">(</span>bodyLimit<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in index.d.ts:214</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Set the maximum body size -1 means unlimited</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>bodyLimit: <span class="tsd-signature-type">number</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>the max size</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></h4>
							<p>reference to this for fluency</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="setdeleteuploadedfilesonend" class="tsd-anchor"></a>
					<h3>set<wbr>Delete<wbr>Uploaded<wbr>Files<wbr>OnEnd</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">set<wbr>Delete<wbr>Uploaded<wbr>Files<wbr>OnEnd<span class="tsd-signature-symbol">(</span>deleteUploadedFilesOnEnd<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in index.d.ts:238</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Set whether uploaded files should be removed after handling the request</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>deleteUploadedFilesOnEnd: <span class="tsd-signature-type">boolean</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>true if uploaded files should be removed after handling the request</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></h4>
							<p>reference to this for fluency</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="sethandlefileuploads" class="tsd-anchor"></a>
					<h3>set<wbr>Handle<wbr>File<wbr>Uploads</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">set<wbr>Handle<wbr>File<wbr>Uploads<span class="tsd-signature-symbol">(</span>handleFileUploads<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in index.d.ts:206</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Set whether file uploads will be handled</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>handleFileUploads: <span class="tsd-signature-type">boolean</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>true if they should be handled</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></h4>
							<p>reference to this for fluency</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="setmergeformattributes" class="tsd-anchor"></a>
					<h3>set<wbr>Merge<wbr>Form<wbr>Attributes</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">set<wbr>Merge<wbr>Form<wbr>Attributes<span class="tsd-signature-symbol">(</span>mergeFormAttributes<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in index.d.ts:230</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Set whether form attributes will be added to the request parameters</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>mergeFormAttributes: <span class="tsd-signature-type">boolean</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>true if they should be merged</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></h4>
							<p>reference to this for fluency</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="setpreallocatebodybuffer" class="tsd-anchor"></a>
					<h3>set<wbr>Preallocate<wbr>Body<wbr>Buffer</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">set<wbr>Preallocate<wbr>Body<wbr>Buffer<span class="tsd-signature-symbol">(</span>isPreallocateBodyBuffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in index.d.ts:249</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Pre-allocate the body buffer according to the value parsed from content-length header.
									The buffer is capped at 64KB</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>isPreallocateBodyBuffer: <span class="tsd-signature-type">boolean</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>if body buffer is pre-allocated according to the size
											read from content-length Header.
										{code false} if body buffer is pre-allocated to 1KB, and is resized dynamically</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></h4>
							<p>reference to this for fluency</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="setuploadsdirectory" class="tsd-anchor"></a>
					<h3>set<wbr>Uploads<wbr>Directory</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">set<wbr>Uploads<wbr>Directory<span class="tsd-signature-symbol">(</span>uploadsDirectory<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in index.d.ts:222</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Set the uploads directory to use</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>uploadsDirectory: <span class="tsd-signature-type">string</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>the uploads directory</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></h4>
							<p>reference to this for fluency</p>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="create" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> create</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">create<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></li>
						<li class="tsd-signature tsd-kind-icon">create<span class="tsd-signature-symbol">(</span>handleFileUploads<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></li>
						<li class="tsd-signature tsd-kind-icon">create<span class="tsd-signature-symbol">(</span>uploadDirectory<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in index.d.ts:182</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Create a body handler with defaults</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></h4>
							<p>the body handler</p>
						</li>
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in index.d.ts:190</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Create a body handler setting if it should handle file uploads</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>handleFileUploads: <span class="tsd-signature-type">boolean</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>true if files upload should be handled</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></h4>
							<p>the body handler</p>
						</li>
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in index.d.ts:198</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>Create a body handler and use the given upload directory.</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>uploadDirectory: <span class="tsd-signature-type">string</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>the uploads directory</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="bodyhandler.html" class="tsd-signature-type">BodyHandler</a></h4>
							<p>the body handler</p>
						</li>
					</ul>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class="globals  ">
						<a href="../globals.html"><em>Globals</em></a>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
				</ul>
				<ul class="current">
					<li class="current tsd-kind-class">
						<a href="bodyhandler.html" class="tsd-kind-icon">Body<wbr>Handler</a>
						<ul>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="bodyhandler.html#default_body_limit" class="tsd-kind-icon">DEFAULT_<wbr>BODY_<wbr>LIMIT</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="bodyhandler.html#default_delete_uploaded_files_on_end" class="tsd-kind-icon">DEFAULT_<wbr>DELETE_<wbr>UPLOADED_<wbr>FILES_<wbr>ON_<wbr>END</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="bodyhandler.html#default_merge_form_attributes" class="tsd-kind-icon">DEFAULT_<wbr>MERGE_<wbr>FORM_<wbr>ATTRIBUTES</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="bodyhandler.html#default_preallocate_body_buffer" class="tsd-kind-icon">DEFAULT_<wbr>PREALLOCATE_<wbr>BODY_<wbr>BUFFER</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="bodyhandler.html#default_uploads_directory" class="tsd-kind-icon">DEFAULT_<wbr>UPLOADS_<wbr>DIRECTORY</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="bodyhandler.html#handle" class="tsd-kind-icon">handle</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="bodyhandler.html#setbodylimit" class="tsd-kind-icon">set<wbr>Body<wbr>Limit</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="bodyhandler.html#setdeleteuploadedfilesonend" class="tsd-kind-icon">set<wbr>Delete<wbr>Uploaded<wbr>Files<wbr>OnEnd</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="bodyhandler.html#sethandlefileuploads" class="tsd-kind-icon">set<wbr>Handle<wbr>File<wbr>Uploads</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="bodyhandler.html#setmergeformattributes" class="tsd-kind-icon">set<wbr>Merge<wbr>Form<wbr>Attributes</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="bodyhandler.html#setpreallocatebodybuffer" class="tsd-kind-icon">set<wbr>Preallocate<wbr>Body<wbr>Buffer</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="bodyhandler.html#setuploadsdirectory" class="tsd-kind-icon">set<wbr>Uploads<wbr>Directory</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="bodyhandler.html#create" class="tsd-kind-icon">create</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer class="with-border-bottom">
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
				<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
				<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
				<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
				<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
				<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
				<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
				<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
				<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
				<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
				<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
				<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
				<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
				<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
				<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
				<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
				<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
				<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
				<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
				<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
				<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
				<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="container tsd-generator">
	<p>Generated using <a href="http://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
</body>
</html>